<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('行业代码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[industry_code]" value="{$row.industry_code}" data-rule="required" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('行业名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[industry_name]" value="{$row.industry_name}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('行业类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" name="row[industry_type]" data-rule="required">
                <option value="discrete" {if $row.industry_type == 'discrete'}selected{/if}>离散制造</option>
                <option value="process" {if $row.industry_type == 'process'}selected{/if}>流程制造</option>
                <option value="hybrid" {if $row.industry_type == 'hybrid'}selected{/if}>混合制造</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('行业描述')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" name="row[description]" rows="3">{$row.description}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否启用')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="radio" name="row[is_active]" value="1" {if $row.is_active == 1}checked{/if}> 是
            <input type="radio" name="row[is_active]" value="0" {if $row.is_active == 0}checked{/if}> 否
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否默认')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="radio" name="row[is_default]" value="1" {if $row.is_default == 1}checked{/if}> 是
            <input type="radio" name="row[is_default]" value="0" {if $row.is_default == 0}checked{/if}> 否
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" name="row[sort]" value="{$row.sort}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" name="row[status]">
                <option value="normal" {if $row.status == 'normal'}selected{/if}>正常</option>
                <option value="hidden" {if $row.status == 'hidden'}selected{/if}>隐藏</option>
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

